package example.week2;

public class zoo {
    //属性
    String name;
    int age;
    String gender;
    String species;
    double weight;

    //行为
    public void introduction() {
        System.out.println("My name is " + name);
        System.out.println(name + " is a " + species);
        System.out.println(name + " is " + gender);
    }

    public void condition() {
        System.out.println(name + " is " + age + " years old");
        System.out.println("Its weight is " + weight + " kg");
    }

    public void daily() {
        System.out.println(name + " plays with his friends");
    }
}
